package com.yanqu.road.logic.bussiness.union;


import com.yanqu.road.entity.union.trade.UnionTradeEventInfo;
import com.yanqu.road.entity.union.trade.UnionTradeRouteInfo;
import com.yanqu.road.entity.union.trade.UnionTradeTeamData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

/**
 * 商会贸易（商贸）
 */
public class UnionTradeBussiness {


    public static Map<Integer, UnionTradeRouteInfo> getUnionTradeRouteInfoMap(){
        return DaoHelper.getUnionTradeConfigDaoImpl().getUnionTradeRouteInfoMap();
    }

    public static Map<Integer, UnionTradeEventInfo>  getUnionTradeEventInfoMap(){
        return DaoHelper.getUnionTradeConfigDaoImpl().getUnionTradeEventInfoMap();
    }

    public static Map<String, Map<Integer, UnionTradeTeamData>>  getUnionTradeTeamDataMap(){
        return DaoHelper.getUnionTradeTeamDaoImpl().getUnionTradeTeamDataMap();
    }

    public static boolean addUnionTradeTeamData(UnionTradeTeamData unionTradeTeamData){
        return DaoHelper.getUnionTradeTeamDaoImpl().add(unionTradeTeamData);
    }

    public static boolean updateUnionTradeTeamData(UnionTradeTeamData unionTradeTeamData){
        return DaoHelper.getUnionTradeTeamDaoImpl().update(unionTradeTeamData);
    }
}
